hrichharms / AlbiPy

AlbiPy is a network sniffing tool that allows direct access to the Albion Online Client's market data through the Python programming language.
MIT License
33 stars 17 forks source link

Windows Support #3

Closed karuxkaru closed 3 years ago

karuxkaru commented 3 years ago

when i got the administrator/root access. and then i run the program.but it doesnt work.Nothing print.i dont know if it work.

hrichharms commented 3 years ago

Did your client actually receive data during that time? I.e. did you refresh market orders, search market orders etc.?

karuxkaru commented 3 years ago

of course.i do this. i think it still a broblem for port. i also add self.sniffer.bind(('',2322)). if i delete it.i will happen a new error. OSError: [WinError 10013] An attempt was made to access the socket in a way that is not allowed by the access permissions.

hrichharms commented 3 years ago

Alright I seem to have found the problem. The socket protocol being used doesn't behave the same way on Windows as on Linux. If you have access to a Linux machine I would recommend using that for the time being until I find a workaround for Windows.

AIshouldbecry commented 3 years ago

oh.that is the reason why i cant use the program.ty.

hrichharms commented 3 years ago

I just pushed a new version of the file with windows support

karuxkaru commented 3 years ago

nice bro.i will try now.

karuxkaru commented 3 years ago

it can work stable. what is that mean? self.sniffer.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON)

hrichharms commented 3 years ago

it sets the socket mode to receive all as set out by the Microsoft documentation found here

AIshouldbecry commented 3 years ago

I will test tomorrow.but it seems to not work on windows system.it doesn’t generate csv file.

hrichharms commented 3 years ago

Are you running one of the example scripts or are you running AlbiPy through your own code?

AIshouldbecry commented 3 years ago

I run example scripts.it seem can not get what I doing.I will talk to you tomorrow in detail.

karuxkaru commented 3 years ago

it my false.it can work good in windows system. image