udp_server.py 文件源码

python
阅读 34 收藏 0 点赞 0 评论 0

项目:Wall-EEG 作者: neurotechuoft 项目源码 文件源码
def activate(self):
        print "udp_server plugin"
        print self.args

        if len(self.args) > 0:
            self.ip = self.args[0]
        if len(self.args) > 1:
            self.port = int(self.args[1])

        # init network
        print "Selecting raw UDP streaming. IP: ", self.ip, ", port: ", str(
            self.port)

        self.server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

        print "Server started on port " + str(self.port)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号