15 Reputation Points
Ranked #2K
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #107.49K
Re: #!/bin/python # To test the cdr realtime sending function import string import urllib2 import time import socket port = raw_input("Please enter the bind port like: 1000\n") #wait connect def test(): server = socket.socket(socket.AF_INET,socket.SOCK_STREAM) address = ('192.168.124.16', int(port)) //the local IP address server.bind(address) server.listen(10) while 1: s,addr=server.accept() data = s.recv(2048) print … |