Re: Send a particular packet with this python client

2006-01-24 Thread Sbaush
Now i can explain better than previous messages.This string has to be sent to another host via UDP with the previous attached simple client/server udp implementation in python. The big problem is:The packet MUST be like this c struct: #define PAYLOAD_LENGHT 5000  struct command_hdr {    int lengh

Re: Send a particular packet with this python client

2006-01-24 Thread Sbaush
I can specify the question, so you can request me easily...The int should be an integer of 32 bit fixed. This is total packet size. The string should contain XML.In this example the string is taken from keyboard, so for example. Thanks all for your helps...2006/1/24, Sbaush <[EMAIL PROTECTED]>: Hi

Send a particular packet with this python client

2006-01-24 Thread Sbaush
Hi all, i have a python udp client/server.I would send a packed like this: |int|string| . How can i do it with tih client?Another question: buf is the total packet size? from socket import * # Set the socket parameters host = "192.168.11.49" port = 21567 buf = 1024 addr = (host,port) # Creat