User Tools

Site Tools


programming:python:py-prefork-server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
programming:python:py-prefork-server [2023/11/10 20:01] jayprogramming:python:py-prefork-server [2023/11/10 20:01] jay
Line 100: Line 100:
 Remember, if this is a udp server, self.conn will be a string with the actual packet payload.  If you have a udp server, and you wish to respond, you can use the resp_to() method built into BaseChild.  It accepts the message responds to the current udp client. Remember, if this is a udp server, self.conn will be a string with the actual packet payload.  If you have a udp server, and you wish to respond, you can use the resp_to() method built into BaseChild.  It accepts the message responds to the current udp client.
  
-<source python>+<code python>
 def process_request(self): def process_request(self):
     data = self.conn     data = self.conn
     self.resp_to('Received data: %s\n' % data)     self.resp_to('Received data: %s\n' % data)
-</source>+</code>
  
 == post_process_request(self) == == post_process_request(self) ==
programming/python/py-prefork-server.txt · Last modified: 2023/11/10 20:06 by jay