Modules/Sockets: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Changed polish reference)
 
(23 intermediate revisions by 9 users not shown)
Line 3: Line 3:
{{Module_Info|
{{Module_Info|
   name          = ml_sockets |
   name          = ml_sockets |
   version        = 0.1 |
   version        = 1.4 |
   author        = Gamesnert &  
   author        = Gamesnert, x86 & MCvarial |
MCvarial <[email protected]> |
   module_website = ''[https://github.com/multitheftauto/multitheftauto-modules Here]'' |
   module_website = ''http://code.google.com/p/multitheftauto-modules/'' |
   download_link  = [https://nightly.mtasa.com/files/modules/32/ml_sockets.dll Windows 32 bit]<br/>[https://nightly.mtasa.com/files/modules/64/ml_sockets.dll Windows  64 bit]
   download_link  = ''Comming really soon!'' |
[https://nightly.mtasa.com/files/modules/32/ml_sockets.so Linux 32 bit]<br/>[https://nightly.mtasa.com/files/modules/64/ml_sockets.so Linux 64 bit] |
   license        = ''Unlicensed'' |
   license        = ''GPLv3'' |
  written_in    = C++ |
  operating_system = Cross-platform |
  compatible_with = 1.x
}}
}}
This module provides socket related functions and events for mta 1.0.x.
This module provides socket related functions and events for MTA:SA.
Sockets provide various possibilities such as opening a webpage, connecting to irc etc.
Sockets provide various possibilities such as opening a webpage, connecting to irc etc.


==Installation==
==Installation==
===Windows===
===Windows===
Uncompress the file ml_sockets.dll into your ''server\mods\deathmatch\modules\'' directory.
'''32 bit:''' Copy 32 bit ml_sockets.dll into the '''MTA San Andreas\server\mods\deathmatch\modules\''' directory.<br/>


===Linux===
'''64 bit:''' Copy 64 bit ml_sockets.dll into the '''MTA San Andreas\server\x64\modules\''' directory.
Place the file ml_sockets.so into your ''server/mods/deathmatch/modules/'' directory.


===mtaserver.conf===
Then, add the following line in mtaserver.conf:
Add the following line in your mtaserver.conf:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
   <module src="ml_sockets" />
   <module src="ml_sockets.dll" />
</syntaxhighlight>
 
===GNU/Linux===
'''32 bit:''' Copy 32 bit ml_sockets.so into the '''mods/deathmatch/modules/''' directory.<br/>
 
'''64 bit:''' Copy 64 bit ml_sockets.so into the '''x64/modules/''' directory.
 
Then, add the following line in mtaserver.conf:
<syntaxhighlight lang="xml">
  <module src="ml_sockets.so" />
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
===Functions===
===Functions===
[http://wiki.mtasa.com/wiki/Modules/Sockets/sockOpen sockOpen()]
{{Modules/Sockets/Functions}}
[http://wiki.mtasa.com/wiki/Modules/Sockets/sockWrite sockWrite()]
[http://wiki.mtasa.com/wiki/Modules/Sockets/sockClose sockClose()]


===Events===
===Events===
{{Modules/Sockets/Events}}


===Resources===
*[[resource:irc]]
[[Category:Modules]]
[[Category:Modules]]
[[pl:Modules/Sockets]]
[[ru:Modules/Sockets]]

Latest revision as of 17:32, 15 January 2022

Module info
Name ml_sockets
Version 1.4
Author Gamesnert, x86 & MCvarial
Module website Here
Download link Windows 32 bit
Windows 64 bit

Linux 32 bit
Linux 64 bit

License GPLv3
Written in C++
Operating system Cross-platform
Compatible with 1.x

This module provides socket related functions and events for MTA:SA. Sockets provide various possibilities such as opening a webpage, connecting to irc etc.

Installation

Windows

32 bit: Copy 32 bit ml_sockets.dll into the MTA San Andreas\server\mods\deathmatch\modules\ directory.

64 bit: Copy 64 bit ml_sockets.dll into the MTA San Andreas\server\x64\modules\ directory.

Then, add the following line in mtaserver.conf:

  <module src="ml_sockets.dll" />

GNU/Linux

32 bit: Copy 32 bit ml_sockets.so into the mods/deathmatch/modules/ directory.

64 bit: Copy 64 bit ml_sockets.so into the x64/modules/ directory.

Then, add the following line in mtaserver.conf:

  <module src="ml_sockets.so" />

See Also

Functions

Events

Resources