|
Bas de page | |
---|---|
Auteur | Sujet : Sending many packets Ethernet simultaneously |
Publicité | Posté le 07-05-2011 à 14:18:42 |
sloumanaw | how can i use it in my case? who is the server and who is the client? |
gilou ModérateurModzilla | If you don't understand what is a server and a client, how can you expect to program socket code?
--------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
sloumanaw | thank you for your time gilou,i will explain to you my application. i really need your help so please be patient with me.
|
gilou ModérateurModzilla |
OK
This is basic stuff that we don't have to care about in socket programming.
Message édité par gilou le 09-05-2011 à 17:24:29 --------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
sloumanaw | thank you Gilou. i'm working on windows platform. i will start to develop like you said to me without threads,if it works i will make concurrency in my program. so,i will recap what i have understood: i must have one server for each UDP port which will receive the message (we are now in transport layer,no?).and after i will build my packet with headers and send it with another socket (in this case udp layer is the client) to the Mac layer (the server)?? in this level,i send packet with winpcap librairies to the Ethernet interface (according to its device). |
gilou ModérateurModzilla |
Do you mean UDP packets? Why would you do that? When you do this:
Or you must have a server listening on more than one port, here also, multithreading helps. I don't know what you're trying to do, but if you have never programmed in client/server through sockets, or never programmed a multithreading application, I doubt that 2 weeks is enough to have a working program free of bugs. A+, Message édité par gilou le 10-05-2011 à 13:45:49 --------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
sloumanaw |
Message édité par sloumanaw le 10-05-2011 à 15:44:34 |
gilou ModérateurModzilla |
If you do all that by hand, you dont need sockets at all!
Message édité par gilou le 10-05-2011 à 15:46:58 --------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
Publicité | Posté le 10-05-2011 à 15:45:02 |
sloumanaw | i will do my best to finish this program in two weeks.it will be hard but i hope i will have good results |
sloumanaw | ok then.i think you understand exactly what i want to do
|
kadreg profil: Utilisateur |
--------------- brisez les rêves des gens, il en restera toujours quelque chose... -- laissez moi troller sur discu ! |
sloumanaw | if UDP port number is just a value in UDP header so how can we send raw packet from application layer to UDP layer without port.it can be communication port or SAP port.each communication port is assigned to an UDP port. |
gilou ModérateurModzilla | Writing raw UDP packets is easy, the hard part will be multitasking.
--------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
gilou ModérateurModzilla | You dont send raw packet from application layer to UDP layer. Message édité par gilou le 10-05-2011 à 16:00:54 --------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
sloumanaw | raw packets will be send to transport layer via communication ports,each one is assigned to one UDP port. i will not use so many incoming data to split or schedule for sending through UDP.i will only have some tests with this project so i think i need some handling between ports that all. i need your help in the use of multithread. so please can you explain to me how can i use threads? do i have to use one thread to transmit or many threads as the number of UDP ports (communication ports) used? means one thread for each port? |
sloumanaw | so i do not need even communication ports? |
sloumanaw | in the specifications of the project there is communication ports between udp layer and application layer.if it is not necessary i will not use it. if it will be more simple without so i wil no use |
gilou ModérateurModzilla |
Communication ports? That does not makes any sense.
--------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
sloumanaw | my UDP layer is the same for Ethernet and model OSI. but communication ports is another service. but i don't have problem with it.i only have problem with the use of threads in multithreading application.so please can you help my only in this point, i know that i asked you so many questions but please how can i use threads? do i have to use one thread to transmit or many threads as the number of UDP port used? means one thread for each port? and please if you have some links that can help me.
|
gilou ModérateurModzilla |
This does not tell me anything. My question was clear.
--------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
sloumanaw | my UDP layer is a set of functions in my software.
|
gilou ModérateurModzilla |
Therefore, speaking of port does not make sense,as you will communicate data to the function through a buffer or a buffer address.
--------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
sloumanaw | yes you are right |
sloumanaw | please another question gilou,if we want to send these packets with a rate. means BAG=2ms Bandwidth Allocation Gap, between every two consecutive frames |
gilou ModérateurModzilla | It seems (winpcap is unclear on this) that the timestamp value is taken into account when the sync parameter of pcap_sendqueue_transmit is set:
Message édité par gilou le 10-05-2011 à 17:59:00 --------------- There's more than what can be linked! -- Iyashikei Anime Forever! -- AngularJS c'est un framework d'engulé! -- |
sloumanaw | ok thank you i will try it |
Publicité | Posté le |
Sujets relatifs | |
---|---|
design many to one hibernate | EF & C# : relation many to many |
[Suppression doublons>3] ==> Ora-00913: too many values ... | [MySQL] too many connections |
ZEND - gestion MySQL - too many connexion | nhibernate : one-to-many |
Demarrer/Eteindre un PC via ethernet | Comment utiliser le port Ethernet en .net (VB .net si possible) ? |
C++ ==> \stdlib.h too many arguments to function | |
Plus de sujets relatifs à : Sending many packets Ethernet simultaneously |