gosu 0.7.13 → 0.7.13.2
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING.txt +4 -2
- data/Gosu/Audio.hpp +8 -5
- data/Gosu/Font.hpp +5 -3
- data/Gosu/Gosu.hpp +6 -0
- data/Gosu/Graphics.hpp +6 -13
- data/Gosu/GraphicsBase.hpp +14 -3
- data/Gosu/IO.hpp +259 -255
- data/Gosu/Image.hpp +12 -12
- data/Gosu/ImageData.hpp +3 -0
- data/Gosu/Input.hpp +14 -2
- data/Gosu/Math.hpp +3 -2
- data/Gosu/RotFlip.hpp +125 -116
- data/Gosu/Sockets.hpp +139 -129
- data/Gosu/Text.hpp +4 -4
- data/Gosu/WinUtility.hpp +1 -1
- data/Gosu/Window.hpp +9 -5
- data/GosuImpl/Graphics/BitmapUtils.cpp +8 -8
- data/GosuImpl/Graphics/DrawOp.hpp +13 -14
- data/GosuImpl/Graphics/Graphics.cpp +3 -2
- data/GosuImpl/Graphics/Image.cpp +8 -8
- data/GosuImpl/Graphics/LargeImageData.cpp +8 -8
- data/GosuImpl/Graphics/Text.cpp +15 -3
- data/GosuImpl/{TextTTFWin.cpp → Graphics/TextTTFWin.cpp} +0 -0
- data/GosuImpl/Graphics/TextWin.cpp +36 -25
- data/GosuImpl/Graphics/Texture.cpp +2 -0
- data/GosuImpl/Iconv.hpp +1 -3
- data/GosuImpl/RubyGosu.swg +19 -10
- data/GosuImpl/RubyGosuStub.mm +40 -8
- data/GosuImpl/RubyGosu_SWIG_GC_PATCH.patch +126 -0
- data/GosuImpl/RubyGosu_wrap.cxx +1601 -247
- data/GosuImpl/RubyGosu_wrap.h +1 -1
- data/GosuImpl/WindowWin.cpp +18 -6
- data/README.txt +5 -5
- data/Rakefile +27 -7
- data/linux/Makefile.in +1 -1
- data/mac/Gosu.xcodeproj/jlnr.pbxuser +939 -350
- data/mac/Gosu.xcodeproj/jlnr.perspectivev3 +66 -61
- data/mac/Gosu.xcodeproj/project.pbxproj +474 -92
- data/mac/RubyGosu Template-Info.plist b/data/mac/RubyGosu → App-Info.plist +0 -0
- data/reference/cpp/_audio_8hpp-source.html +171 -0
- data/reference/cpp/_audio_8hpp.html +96 -0
- data/reference/cpp/_auto_link_8hpp-source.html +84 -0
- data/reference/cpp/_auto_link_8hpp.html +83 -0
- data/reference/cpp/_bitmap_8hpp-source.html +130 -0
- data/reference/cpp/_bitmap_8hpp.html +107 -0
- data/reference/{ButtonsMac_8hpp-source.html → cpp/_buttons_mac_8hpp-source.html} +60 -14
- data/reference/cpp/_buttons_mac_8hpp.html +233 -0
- data/reference/cpp/_color_8hpp-source.html +215 -0
- data/reference/cpp/_color_8hpp.html +119 -0
- data/reference/cpp/_directories_8hpp-source.html +88 -0
- data/reference/cpp/_directories_8hpp.html +96 -0
- data/reference/cpp/_font_8hpp-source.html +111 -0
- data/reference/cpp/_font_8hpp.html +87 -0
- data/reference/{Fwd_8hpp-source.html → cpp/_fwd_8hpp-source.html} +59 -13
- data/reference/cpp/_fwd_8hpp.html +83 -0
- data/reference/cpp/_gosu_8hpp-source.html +96 -0
- data/reference/cpp/_gosu_8hpp.html +83 -0
- data/reference/cpp/_graphics_8hpp-source.html +134 -0
- data/reference/cpp/_graphics_8hpp.html +94 -0
- data/reference/cpp/_graphics_base_8hpp-source.html +115 -0
- data/reference/cpp/_graphics_base_8hpp.html +120 -0
- data/reference/cpp/_i_o_8hpp-source.html +301 -0
- data/reference/cpp/_i_o_8hpp.html +122 -0
- data/reference/cpp/_image_8hpp-source.html +172 -0
- data/reference/cpp/_image_8hpp.html +96 -0
- data/reference/cpp/_image_data_8hpp-source.html +108 -0
- data/reference/cpp/_image_data_8hpp.html +90 -0
- data/reference/cpp/_input_8hpp-source.html +182 -0
- data/reference/cpp/_input_8hpp.html +102 -0
- data/reference/cpp/_math_8hpp-source.html +147 -0
- data/reference/cpp/_math_8hpp.html +139 -0
- data/reference/{Platform_8hpp-source.html → cpp/_platform_8hpp-source.html} +61 -15
- data/reference/cpp/_platform_8hpp.html +136 -0
- data/reference/cpp/_rot_flip_8hpp-source.html +184 -0
- data/reference/cpp/_rot_flip_8hpp.html +123 -0
- data/reference/cpp/_sockets_8hpp-source.html +174 -0
- data/reference/cpp/_sockets_8hpp.html +117 -0
- data/reference/cpp/_text_8hpp-source.html +102 -0
- data/reference/cpp/_text_8hpp.html +99 -0
- data/reference/cpp/_text_input_8hpp-source.html +110 -0
- data/reference/cpp/_text_input_8hpp.html +87 -0
- data/reference/cpp/_timing_8hpp-source.html +82 -0
- data/reference/cpp/_timing_8hpp.html +90 -0
- data/reference/cpp/_utility_8hpp-source.html +89 -0
- data/reference/cpp/_utility_8hpp.html +96 -0
- data/reference/cpp/_win_utility_8hpp-source.html +125 -0
- data/reference/cpp/_win_utility_8hpp.html +116 -0
- data/reference/cpp/_window_8hpp-source.html +157 -0
- data/reference/cpp/_window_8hpp.html +87 -0
- data/reference/cpp/annotated.html +98 -0
- data/reference/cpp/class_gosu_1_1_audio-members.html +74 -0
- data/reference/cpp/class_gosu_1_1_audio.html +132 -0
- data/reference/cpp/class_gosu_1_1_bitmap-members.html +85 -0
- data/reference/cpp/class_gosu_1_1_bitmap.html +501 -0
- data/reference/cpp/class_gosu_1_1_buffer-members.html +84 -0
- data/reference/cpp/class_gosu_1_1_buffer.html +346 -0
- data/reference/{classGosu_1_1Buffer.png → cpp/class_gosu_1_1_buffer.png} +0 -0
- data/reference/cpp/class_gosu_1_1_button-members.html +76 -0
- data/reference/cpp/class_gosu_1_1_button.html +195 -0
- data/reference/cpp/class_gosu_1_1_color-members.html +96 -0
- data/reference/cpp/class_gosu_1_1_color.html +758 -0
- data/reference/cpp/class_gosu_1_1_comm_socket-members.html +90 -0
- data/reference/cpp/class_gosu_1_1_comm_socket.html +505 -0
- data/reference/cpp/class_gosu_1_1_file-members.html +81 -0
- data/reference/cpp/class_gosu_1_1_file.html +275 -0
- data/reference/{classGosu_1_1File.png → cpp/class_gosu_1_1_file.png} +0 -0
- data/reference/cpp/class_gosu_1_1_font-members.html +79 -0
- data/reference/{classGosu_1_1Font.html → cpp/class_gosu_1_1_font.html} +207 -66
- data/reference/cpp/class_gosu_1_1_graphics-members.html +90 -0
- data/reference/cpp/class_gosu_1_1_graphics.html +768 -0
- data/reference/cpp/class_gosu_1_1_image-members.html +85 -0
- data/reference/cpp/class_gosu_1_1_image.html +771 -0
- data/reference/cpp/class_gosu_1_1_image_data-members.html +77 -0
- data/reference/cpp/class_gosu_1_1_image_data.html +281 -0
- data/reference/cpp/class_gosu_1_1_input-members.html +85 -0
- data/reference/cpp/class_gosu_1_1_input.html +417 -0
- data/reference/cpp/class_gosu_1_1_listener_socket-members.html +78 -0
- data/reference/cpp/class_gosu_1_1_listener_socket.html +221 -0
- data/reference/cpp/class_gosu_1_1_message_socket-members.html +80 -0
- data/reference/{classGosu_1_1MessageSocket.html → cpp/class_gosu_1_1_message_socket.html} +115 -43
- data/reference/cpp/class_gosu_1_1_reader-members.html +80 -0
- data/reference/cpp/class_gosu_1_1_reader.html +322 -0
- data/reference/cpp/class_gosu_1_1_resource-members.html +79 -0
- data/reference/cpp/class_gosu_1_1_resource.html +305 -0
- data/reference/{classGosu_1_1Resource.png → cpp/class_gosu_1_1_resource.png} +0 -0
- data/reference/cpp/class_gosu_1_1_rot_flip-members.html +83 -0
- data/reference/cpp/class_gosu_1_1_rot_flip.html +347 -0
- data/reference/cpp/class_gosu_1_1_sample-members.html +77 -0
- data/reference/{classGosu_1_1Sample.html → cpp/class_gosu_1_1_sample.html} +99 -32
- data/reference/cpp/class_gosu_1_1_sample_instance-members.html +81 -0
- data/reference/cpp/class_gosu_1_1_sample_instance.html +317 -0
- data/reference/cpp/class_gosu_1_1_song-members.html +86 -0
- data/reference/{classGosu_1_1Song.html → cpp/class_gosu_1_1_song.html} +152 -68
- data/reference/cpp/class_gosu_1_1_text_input-members.html +78 -0
- data/reference/cpp/class_gosu_1_1_text_input.html +227 -0
- data/reference/cpp/class_gosu_1_1_window-members.html +90 -0
- data/reference/cpp/class_gosu_1_1_window.html +533 -0
- data/reference/cpp/class_gosu_1_1_writer-members.html +79 -0
- data/reference/cpp/class_gosu_1_1_writer.html +292 -0
- data/reference/cpp/classes.html +86 -0
- data/reference/cpp/closed.gif +0 -0
- data/reference/cpp/cpp.css +155 -0
- data/reference/{doxygen.png → cpp/doxygen.png} +0 -0
- data/reference/cpp/files.html +97 -0
- data/reference/cpp/functions.html +127 -0
- data/reference/cpp/functions_0x62.html +137 -0
- data/reference/cpp/functions_0x63.html +140 -0
- data/reference/cpp/functions_0x64.html +142 -0
- data/reference/cpp/functions_0x65.html +119 -0
- data/reference/cpp/functions_0x66.html +137 -0
- data/reference/cpp/functions_0x67.html +131 -0
- data/reference/cpp/functions_0x68.html +121 -0
- data/reference/cpp/functions_0x69.html +123 -0
- data/reference/cpp/functions_0x6b.html +115 -0
- data/reference/cpp/functions_0x6c.html +117 -0
- data/reference/cpp/functions_0x6d.html +125 -0
- data/reference/cpp/functions_0x6e.html +117 -0
- data/reference/cpp/functions_0x6f.html +126 -0
- data/reference/cpp/functions_0x70.html +136 -0
- data/reference/cpp/functions_0x72.html +154 -0
- data/reference/cpp/functions_0x73.html +179 -0
- data/reference/cpp/functions_0x74.html +127 -0
- data/reference/cpp/functions_0x75.html +121 -0
- data/reference/cpp/functions_0x76.html +117 -0
- data/reference/cpp/functions_0x77.html +129 -0
- data/reference/cpp/functions_0x78.html +115 -0
- data/reference/cpp/functions_0x79.html +115 -0
- data/reference/cpp/functions_0x7e.html +143 -0
- data/reference/cpp/functions_enum.html +87 -0
- data/reference/cpp/functions_eval.html +89 -0
- data/reference/cpp/functions_func.html +125 -0
- data/reference/cpp/functions_func_0x62.html +133 -0
- data/reference/cpp/functions_func_0x63.html +136 -0
- data/reference/cpp/functions_func_0x64.html +140 -0
- data/reference/cpp/functions_func_0x65.html +117 -0
- data/reference/cpp/functions_func_0x66.html +135 -0
- data/reference/cpp/functions_func_0x67.html +129 -0
- data/reference/cpp/functions_func_0x68.html +119 -0
- data/reference/cpp/functions_func_0x69.html +119 -0
- data/reference/cpp/functions_func_0x6b.html +113 -0
- data/reference/cpp/functions_func_0x6c.html +113 -0
- data/reference/cpp/functions_func_0x6d.html +123 -0
- data/reference/cpp/functions_func_0x6e.html +115 -0
- data/reference/cpp/functions_func_0x6f.html +113 -0
- data/reference/cpp/functions_func_0x70.html +134 -0
- data/reference/cpp/functions_func_0x72.html +150 -0
- data/reference/cpp/functions_func_0x73.html +173 -0
- data/reference/cpp/functions_func_0x74.html +119 -0
- data/reference/cpp/functions_func_0x75.html +119 -0
- data/reference/cpp/functions_func_0x76.html +115 -0
- data/reference/cpp/functions_func_0x77.html +127 -0
- data/reference/cpp/functions_func_0x7e.html +141 -0
- data/reference/cpp/functions_type.html +87 -0
- data/reference/cpp/functions_vars.html +112 -0
- data/reference/cpp/globals.html +84 -0
- data/reference/cpp/globals_defs.html +84 -0
- data/reference/cpp/hierarchy.html +100 -0
- data/reference/cpp/index.html +66 -0
- data/reference/cpp/open.gif +0 -0
- data/reference/cpp/struct_gosu_1_1_g_l_tex_info-members.html +77 -0
- data/reference/cpp/struct_gosu_1_1_g_l_tex_info.html +185 -0
- data/reference/cpp/struct_gosu_1_1_touch-members.html +75 -0
- data/reference/cpp/struct_gosu_1_1_touch.html +153 -0
- data/reference/{tab_b.gif → cpp/tab_b.gif} +0 -0
- data/reference/{tab_l.gif → cpp/tab_l.gif} +0 -0
- data/reference/{tab_r.gif → cpp/tab_r.gif} +0 -0
- data/reference/{tabs.css → cpp/tabs.css} +5 -2
- data/windows/Gosu.sln +5 -0
- data/windows/Gosu.vcproj +3 -3
- data/windows/RubyGosu.vcproj +103 -1
- metadata +178 -176
- data/reference/Async_8hpp-source.html +0 -70
- data/reference/Audio_8hpp-source.html +0 -125
- data/reference/Audio_8hpp.html +0 -50
- data/reference/AutoLink_8hpp-source.html +0 -38
- data/reference/AutoLink_8hpp.html +0 -34
- data/reference/Bitmap_8hpp-source.html +0 -84
- data/reference/Bitmap_8hpp.html +0 -58
- data/reference/ButtonsWin_8hpp-source.html +0 -159
- data/reference/ButtonsX_8hpp-source.html +0 -160
- data/reference/Color_8hpp-source.html +0 -169
- data/reference/Color_8hpp.html +0 -85
- data/reference/Directories_8hpp-source.html +0 -42
- data/reference/Directories_8hpp.html +0 -46
- data/reference/Font_8hpp-source.html +0 -65
- data/reference/Font_8hpp.html +0 -41
- data/reference/Fwd_8hpp.html +0 -37
- data/reference/Gosu_8hpp-source.html +0 -49
- data/reference/Gosu_8hpp.html +0 -34
- data/reference/GraphicsBase_8hpp-source.html +0 -59
- data/reference/GraphicsBase_8hpp.html +0 -59
- data/reference/Graphics_8hpp-source.html +0 -99
- data/reference/Graphics_8hpp.html +0 -60
- data/reference/IO_8hpp-source.html +0 -255
- data/reference/IO_8hpp.html +0 -74
- data/reference/ImageData_8hpp-source.html +0 -62
- data/reference/ImageData_8hpp.html +0 -43
- data/reference/Image_8hpp-source.html +0 -126
- data/reference/Image_8hpp.html +0 -48
- data/reference/Input_8hpp-source.html +0 -131
- data/reference/Input_8hpp.html +0 -56
- data/reference/Math_8hpp-source.html +0 -101
- data/reference/Math_8hpp.html +0 -78
- data/reference/Platform_8hpp.html +0 -73
- data/reference/RotFlip_8hpp-source.html +0 -138
- data/reference/RotFlip_8hpp.html +0 -77
- data/reference/Sockets_8hpp-source.html +0 -130
- data/reference/Sockets_8hpp.html +0 -66
- data/reference/TextInput_8hpp-source.html +0 -64
- data/reference/TextInput_8hpp.html +0 -41
- data/reference/Text_8hpp-source.html +0 -56
- data/reference/Text_8hpp.html +0 -48
- data/reference/Timing_8hpp-source.html +0 -36
- data/reference/Timing_8hpp.html +0 -42
- data/reference/Utility_8hpp-source.html +0 -43
- data/reference/Utility_8hpp.html +0 -46
- data/reference/WinUtility_8hpp-source.html +0 -79
- data/reference/WinUtility_8hpp.html +0 -64
- data/reference/Window_8hpp-source.html +0 -110
- data/reference/Window_8hpp.html +0 -41
- data/reference/annotated.html +0 -51
- data/reference/classGosu_1_1Audio-members.html +0 -34
- data/reference/classGosu_1_1Audio.html +0 -46
- data/reference/classGosu_1_1Bitmap-members.html +0 -45
- data/reference/classGosu_1_1Bitmap.html +0 -266
- data/reference/classGosu_1_1Buffer-members.html +0 -44
- data/reference/classGosu_1_1Buffer.html +0 -78
- data/reference/classGosu_1_1Button-members.html +0 -36
- data/reference/classGosu_1_1Button.html +0 -143
- data/reference/classGosu_1_1Color-members.html +0 -56
- data/reference/classGosu_1_1Color.html +0 -387
- data/reference/classGosu_1_1File-members.html +0 -41
- data/reference/classGosu_1_1File.html +0 -69
- data/reference/classGosu_1_1Font-members.html +0 -39
- data/reference/classGosu_1_1Graphics-members.html +0 -50
- data/reference/classGosu_1_1Graphics.html +0 -234
- data/reference/classGosu_1_1Image-members.html +0 -45
- data/reference/classGosu_1_1Image.html +0 -518
- data/reference/classGosu_1_1ImageData-members.html +0 -37
- data/reference/classGosu_1_1ImageData.html +0 -60
- data/reference/classGosu_1_1Input-members.html +0 -45
- data/reference/classGosu_1_1Input.html +0 -256
- data/reference/classGosu_1_1MessageSocket-members.html +0 -40
- data/reference/classGosu_1_1Resource-members.html +0 -39
- data/reference/classGosu_1_1Resource.html +0 -116
- data/reference/classGosu_1_1Sample-members.html +0 -37
- data/reference/classGosu_1_1SampleInstance-members.html +0 -41
- data/reference/classGosu_1_1SampleInstance.html +0 -178
- data/reference/classGosu_1_1Song-members.html +0 -46
- data/reference/classGosu_1_1TextInput-members.html +0 -38
- data/reference/classGosu_1_1TextInput.html +0 -121
- data/reference/classGosu_1_1Window-members.html +0 -50
- data/reference/classGosu_1_1Window.html +0 -289
- data/reference/doxyfile +0 -233
- data/reference/doxygen.css +0 -433
- data/reference/files.html +0 -54
- data/reference/functions.html +0 -249
- data/reference/functions_enum.html +0 -45
- data/reference/functions_func.html +0 -240
- data/reference/functions_vars.html +0 -47
- data/reference/hierarchy.html +0 -53
- data/reference/index.html +0 -26
- data/reference/namespaceGosu.html +0 -3363
- data/reference/namespaceGosu_1_1Colors.html +0 -70
- data/reference/namespaceGosu_1_1Win.html +0 -275
- data/reference/namespacemembers.html +0 -229
- data/reference/namespacemembers_enum.html +0 -52
- data/reference/namespacemembers_eval.html +0 -54
- data/reference/namespacemembers_func.html +0 -196
- data/reference/namespacemembers_type.html +0 -46
- data/reference/namespacemembers_vars.html +0 -48
- data/reference/namespaces.html +0 -35
@@ -0,0 +1,78 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.8 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
55
|
+
<li><a href="files.html"><span>Files</span></a></li>
|
56
|
+
</ul>
|
57
|
+
</div>
|
58
|
+
<div class="tabs">
|
59
|
+
<ul>
|
60
|
+
<li><a href="annotated.html"><span>Class List</span></a></li>
|
61
|
+
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
62
|
+
<li><a href="functions.html"><span>Class Members</span></a></li>
|
63
|
+
</ul>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
<div class="contents">
|
67
|
+
<h1>Gosu::ListenerSocket Member List</h1>This is the complete list of members for <a class="el" href="class_gosu_1_1_listener_socket.html">Gosu::ListenerSocket</a>, including all inherited members.<p><table>
|
68
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_listener_socket.html#272a05b9d99da78a0dd3143db25ace8a">address</a>() const </td><td><a class="el" href="class_gosu_1_1_listener_socket.html">Gosu::ListenerSocket</a></td><td></td></tr>
|
69
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_listener_socket.html#62c238f846821aa8128a88012d9f0fa8">ListenerSocket</a>(SocketPort port)</td><td><a class="el" href="class_gosu_1_1_listener_socket.html">Gosu::ListenerSocket</a></td><td></td></tr>
|
70
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_listener_socket.html#10650392418b684333d570d31ad5ba66">onConnection</a></td><td><a class="el" href="class_gosu_1_1_listener_socket.html">Gosu::ListenerSocket</a></td><td></td></tr>
|
71
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_listener_socket.html#cbdb21800f7648220484d2024b884219">port</a>() const </td><td><a class="el" href="class_gosu_1_1_listener_socket.html">Gosu::ListenerSocket</a></td><td></td></tr>
|
72
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_listener_socket.html#d75c881ff327dd9a63acbbcbfc4cb9c0">update</a>()</td><td><a class="el" href="class_gosu_1_1_listener_socket.html">Gosu::ListenerSocket</a></td><td></td></tr>
|
73
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_listener_socket.html#99e365e2e69e4df39776b1514d28e079">~ListenerSocket</a>()</td><td><a class="el" href="class_gosu_1_1_listener_socket.html">Gosu::ListenerSocket</a></td><td></td></tr>
|
74
|
+
</table></div>
|
75
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
76
|
+
</div>
|
77
|
+
</body>
|
78
|
+
</html>
|
@@ -0,0 +1,221 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.8 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
55
|
+
<li><a href="files.html"><span>Files</span></a></li>
|
56
|
+
</ul>
|
57
|
+
</div>
|
58
|
+
<div class="tabs">
|
59
|
+
<ul>
|
60
|
+
<li><a href="annotated.html"><span>Class List</span></a></li>
|
61
|
+
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
62
|
+
<li><a href="functions.html"><span>Class Members</span></a></li>
|
63
|
+
</ul>
|
64
|
+
</div>
|
65
|
+
<div class="navpath"><b>Gosu</b>::<a class="el" href="class_gosu_1_1_listener_socket.html">ListenerSocket</a>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
<div class="contents">
|
69
|
+
<h1>Gosu::ListenerSocket Class Reference</h1><!-- doxytag: class="Gosu::ListenerSocket" -->Wraps a TCP socket that waits on a specific port and can create <a class="el" href="class_gosu_1_1_comm_socket.html" title="Wraps a TCP socket that is used for one part of bi-directional communication.">CommSocket</a> instances via its onConnection event.
|
70
|
+
<a href="#_details">More...</a>
|
71
|
+
<p>
|
72
|
+
|
73
|
+
<p>
|
74
|
+
<a href="class_gosu_1_1_listener_socket-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
75
|
+
<tr><td></td></tr>
|
76
|
+
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
77
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_listener_socket.html#62c238f846821aa8128a88012d9f0fa8">ListenerSocket</a> (SocketPort port)</td></tr>
|
78
|
+
|
79
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_listener_socket.html#99e365e2e69e4df39776b1514d28e079">~ListenerSocket</a> ()</td></tr>
|
80
|
+
|
81
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">SocketAddress </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_listener_socket.html#272a05b9d99da78a0dd3143db25ace8a">address</a> () const </td></tr>
|
82
|
+
|
83
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">SocketPort </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_listener_socket.html#cbdb21800f7648220484d2024b884219">port</a> () const </td></tr>
|
84
|
+
|
85
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_listener_socket.html#d75c881ff327dd9a63acbbcbfc4cb9c0">update</a> ()</td></tr>
|
86
|
+
|
87
|
+
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
|
88
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">boost::function< void(Socket &)> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_listener_socket.html#10650392418b684333d570d31ad5ba66">onConnection</a></td></tr>
|
89
|
+
|
90
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">This signal is fired by <a class="el" href="class_gosu_1_1_listener_socket.html#d75c881ff327dd9a63acbbcbfc4cb9c0">update()</a> whenever someone connects to the port which is currently listened on. <a href="#10650392418b684333d570d31ad5ba66"></a><br></td></tr>
|
91
|
+
</table>
|
92
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
93
|
+
Wraps a TCP socket that waits on a specific port and can create <a class="el" href="class_gosu_1_1_comm_socket.html" title="Wraps a TCP socket that is used for one part of bi-directional communication.">CommSocket</a> instances via its onConnection event.
|
94
|
+
<p>
|
95
|
+
|
96
|
+
<p>Definition at line <a class="el" href="_sockets_8hpp-source.html#l00119">119</a> of file <a class="el" href="_sockets_8hpp-source.html">Sockets.hpp</a>.</p>
|
97
|
+
<hr><h2>Constructor & Destructor Documentation</h2>
|
98
|
+
<a class="anchor" name="62c238f846821aa8128a88012d9f0fa8"></a><!-- doxytag: member="Gosu::ListenerSocket::ListenerSocket" ref="62c238f846821aa8128a88012d9f0fa8" args="(SocketPort port)" -->
|
99
|
+
<div class="memitem">
|
100
|
+
<div class="memproto">
|
101
|
+
<table class="memname">
|
102
|
+
<tr>
|
103
|
+
<td class="memname">Gosu::ListenerSocket::ListenerSocket </td>
|
104
|
+
<td>(</td>
|
105
|
+
<td class="paramtype">SocketPort </td>
|
106
|
+
<td class="paramname"> <em>port</em> </td>
|
107
|
+
<td> ) </td>
|
108
|
+
<td></td>
|
109
|
+
</tr>
|
110
|
+
</table>
|
111
|
+
</div>
|
112
|
+
<div class="memdoc">
|
113
|
+
|
114
|
+
<p>
|
115
|
+
|
116
|
+
</div>
|
117
|
+
</div><p>
|
118
|
+
<a class="anchor" name="99e365e2e69e4df39776b1514d28e079"></a><!-- doxytag: member="Gosu::ListenerSocket::~ListenerSocket" ref="99e365e2e69e4df39776b1514d28e079" args="()" -->
|
119
|
+
<div class="memitem">
|
120
|
+
<div class="memproto">
|
121
|
+
<table class="memname">
|
122
|
+
<tr>
|
123
|
+
<td class="memname">Gosu::ListenerSocket::~ListenerSocket </td>
|
124
|
+
<td>(</td>
|
125
|
+
<td class="paramname"> </td>
|
126
|
+
<td> ) </td>
|
127
|
+
<td></td>
|
128
|
+
</tr>
|
129
|
+
</table>
|
130
|
+
</div>
|
131
|
+
<div class="memdoc">
|
132
|
+
|
133
|
+
<p>
|
134
|
+
|
135
|
+
</div>
|
136
|
+
</div><p>
|
137
|
+
<hr><h2>Member Function Documentation</h2>
|
138
|
+
<a class="anchor" name="272a05b9d99da78a0dd3143db25ace8a"></a><!-- doxytag: member="Gosu::ListenerSocket::address" ref="272a05b9d99da78a0dd3143db25ace8a" args="() const " -->
|
139
|
+
<div class="memitem">
|
140
|
+
<div class="memproto">
|
141
|
+
<table class="memname">
|
142
|
+
<tr>
|
143
|
+
<td class="memname">SocketAddress Gosu::ListenerSocket::address </td>
|
144
|
+
<td>(</td>
|
145
|
+
<td class="paramname"> </td>
|
146
|
+
<td> ) </td>
|
147
|
+
<td> const</td>
|
148
|
+
</tr>
|
149
|
+
</table>
|
150
|
+
</div>
|
151
|
+
<div class="memdoc">
|
152
|
+
|
153
|
+
<p>
|
154
|
+
|
155
|
+
</div>
|
156
|
+
</div><p>
|
157
|
+
<a class="anchor" name="cbdb21800f7648220484d2024b884219"></a><!-- doxytag: member="Gosu::ListenerSocket::port" ref="cbdb21800f7648220484d2024b884219" args="() const " -->
|
158
|
+
<div class="memitem">
|
159
|
+
<div class="memproto">
|
160
|
+
<table class="memname">
|
161
|
+
<tr>
|
162
|
+
<td class="memname">SocketPort Gosu::ListenerSocket::port </td>
|
163
|
+
<td>(</td>
|
164
|
+
<td class="paramname"> </td>
|
165
|
+
<td> ) </td>
|
166
|
+
<td> const</td>
|
167
|
+
</tr>
|
168
|
+
</table>
|
169
|
+
</div>
|
170
|
+
<div class="memdoc">
|
171
|
+
|
172
|
+
<p>
|
173
|
+
|
174
|
+
</div>
|
175
|
+
</div><p>
|
176
|
+
<a class="anchor" name="d75c881ff327dd9a63acbbcbfc4cb9c0"></a><!-- doxytag: member="Gosu::ListenerSocket::update" ref="d75c881ff327dd9a63acbbcbfc4cb9c0" args="()" -->
|
177
|
+
<div class="memitem">
|
178
|
+
<div class="memproto">
|
179
|
+
<table class="memname">
|
180
|
+
<tr>
|
181
|
+
<td class="memname">void Gosu::ListenerSocket::update </td>
|
182
|
+
<td>(</td>
|
183
|
+
<td class="paramname"> </td>
|
184
|
+
<td> ) </td>
|
185
|
+
<td></td>
|
186
|
+
</tr>
|
187
|
+
</table>
|
188
|
+
</div>
|
189
|
+
<div class="memdoc">
|
190
|
+
|
191
|
+
<p>
|
192
|
+
|
193
|
+
</div>
|
194
|
+
</div><p>
|
195
|
+
<hr><h2>Member Data Documentation</h2>
|
196
|
+
<a class="anchor" name="10650392418b684333d570d31ad5ba66"></a><!-- doxytag: member="Gosu::ListenerSocket::onConnection" ref="10650392418b684333d570d31ad5ba66" args="" -->
|
197
|
+
<div class="memitem">
|
198
|
+
<div class="memproto">
|
199
|
+
<table class="memname">
|
200
|
+
<tr>
|
201
|
+
<td class="memname">boost::function<void (Socket&)> <a class="el" href="class_gosu_1_1_listener_socket.html#10650392418b684333d570d31ad5ba66">Gosu::ListenerSocket::onConnection</a> </td>
|
202
|
+
</tr>
|
203
|
+
</table>
|
204
|
+
</div>
|
205
|
+
<div class="memdoc">
|
206
|
+
|
207
|
+
<p>
|
208
|
+
This signal is fired by <a class="el" href="class_gosu_1_1_listener_socket.html#d75c881ff327dd9a63acbbcbfc4cb9c0">update()</a> whenever someone connects to the port which is currently listened on.
|
209
|
+
<p>
|
210
|
+
|
211
|
+
<p>Definition at line <a class="el" href="_sockets_8hpp-source.html#l00135">135</a> of file <a class="el" href="_sockets_8hpp-source.html">Sockets.hpp</a>.</p>
|
212
|
+
|
213
|
+
</div>
|
214
|
+
</div><p>
|
215
|
+
<hr>The documentation for this class was generated from the following file:<ul>
|
216
|
+
<li><a class="el" href="_sockets_8hpp-source.html">Sockets.hpp</a></ul>
|
217
|
+
</div>
|
218
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
219
|
+
</div>
|
220
|
+
</body>
|
221
|
+
</html>
|
@@ -0,0 +1,80 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.8 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
55
|
+
<li><a href="files.html"><span>Files</span></a></li>
|
56
|
+
</ul>
|
57
|
+
</div>
|
58
|
+
<div class="tabs">
|
59
|
+
<ul>
|
60
|
+
<li><a href="annotated.html"><span>Class List</span></a></li>
|
61
|
+
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
62
|
+
<li><a href="functions.html"><span>Class Members</span></a></li>
|
63
|
+
</ul>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
<div class="contents">
|
67
|
+
<h1>Gosu::MessageSocket Member List</h1>This is the complete list of members for <a class="el" href="class_gosu_1_1_message_socket.html">Gosu::MessageSocket</a>, including all inherited members.<p><table>
|
68
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_message_socket.html#eadfbf7bbdcc2544a5aaa0d16efa2851">address</a>() const </td><td><a class="el" href="class_gosu_1_1_message_socket.html">Gosu::MessageSocket</a></td><td></td></tr>
|
69
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_message_socket.html#017cc2347921520ba834ef0ae1c31c11">maxMessageSize</a>() const </td><td><a class="el" href="class_gosu_1_1_message_socket.html">Gosu::MessageSocket</a></td><td></td></tr>
|
70
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_message_socket.html#7894acdea2e7dc85c671ca0f6732ccaf">MessageSocket</a>(SocketPort port)</td><td><a class="el" href="class_gosu_1_1_message_socket.html">Gosu::MessageSocket</a></td><td><code> [explicit]</code></td></tr>
|
71
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_message_socket.html#946bf3cb838b105842ca86938c3a86ae">onReceive</a></td><td><a class="el" href="class_gosu_1_1_message_socket.html">Gosu::MessageSocket</a></td><td></td></tr>
|
72
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_message_socket.html#38999d7a0fee723adcb21bf3a036be91">port</a>() const </td><td><a class="el" href="class_gosu_1_1_message_socket.html">Gosu::MessageSocket</a></td><td></td></tr>
|
73
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_message_socket.html#994ac62dc770243d65f88db89c1dc8e6">send</a>(SocketAddress address, SocketPort port, const void *buffer, std::size_t size)</td><td><a class="el" href="class_gosu_1_1_message_socket.html">Gosu::MessageSocket</a></td><td></td></tr>
|
74
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_message_socket.html#3e642630d8b17d9336e3eb7112fa14dd">update</a>()</td><td><a class="el" href="class_gosu_1_1_message_socket.html">Gosu::MessageSocket</a></td><td></td></tr>
|
75
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_message_socket.html#19af8fa567af04eb7fe41b704521a595">~MessageSocket</a>()</td><td><a class="el" href="class_gosu_1_1_message_socket.html">Gosu::MessageSocket</a></td><td></td></tr>
|
76
|
+
</table></div>
|
77
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
78
|
+
</div>
|
79
|
+
</body>
|
80
|
+
</html>
|
@@ -1,15 +1,56 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
<title>Gosu
|
4
|
-
<link
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.8 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
8
50
|
<div class="navigation" id="top">
|
9
51
|
<div class="tabs">
|
10
52
|
<ul>
|
11
53
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
12
|
-
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
54
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
14
55
|
<li><a href="files.html"><span>Files</span></a></li>
|
15
56
|
</ul>
|
@@ -21,7 +62,7 @@
|
|
21
62
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
22
63
|
</ul>
|
23
64
|
</div>
|
24
|
-
<div class="navpath"><
|
65
|
+
<div class="navpath"><b>Gosu</b>::<a class="el" href="class_gosu_1_1_message_socket.html">MessageSocket</a>
|
25
66
|
</div>
|
26
67
|
</div>
|
27
68
|
<div class="contents">
|
@@ -30,31 +71,42 @@
|
|
30
71
|
<p>
|
31
72
|
|
32
73
|
<p>
|
33
|
-
<a href="
|
74
|
+
<a href="class_gosu_1_1_message_socket-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
34
75
|
<tr><td></td></tr>
|
35
76
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
36
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="
|
77
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_message_socket.html#7894acdea2e7dc85c671ca0f6732ccaf">MessageSocket</a> (SocketPort port)</td></tr>
|
37
78
|
|
38
|
-
<tr><td class="
|
79
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Opens a message socket for listening at the specified port. <a href="#7894acdea2e7dc85c671ca0f6732ccaf"></a><br></td></tr>
|
80
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_message_socket.html#19af8fa567af04eb7fe41b704521a595">~MessageSocket</a> ()</td></tr>
|
39
81
|
|
40
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">
|
82
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">SocketAddress </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_message_socket.html#eadfbf7bbdcc2544a5aaa0d16efa2851">address</a> () const </td></tr>
|
41
83
|
|
42
|
-
<tr><td class="
|
84
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the local address of the socket. <a href="#eadfbf7bbdcc2544a5aaa0d16efa2851"></a><br></td></tr>
|
85
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">SocketPort </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_message_socket.html#38999d7a0fee723adcb21bf3a036be91">port</a> () const </td></tr>
|
43
86
|
|
44
|
-
<tr><td class="
|
87
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the local port of the socket. <a href="#38999d7a0fee723adcb21bf3a036be91"></a><br></td></tr>
|
88
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_message_socket.html#017cc2347921520ba834ef0ae1c31c11">maxMessageSize</a> () const </td></tr>
|
45
89
|
|
46
|
-
<tr><td class="
|
90
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximum size, in bytes, of a packet that can be sent from this socket. <a href="#017cc2347921520ba834ef0ae1c31c11"></a><br></td></tr>
|
91
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_message_socket.html#3e642630d8b17d9336e3eb7112fa14dd">update</a> ()</td></tr>
|
47
92
|
|
93
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Collects all the packets that were sent to this socket and calls onReceive for each of them. <a href="#3e642630d8b17d9336e3eb7112fa14dd"></a><br></td></tr>
|
94
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_message_socket.html#994ac62dc770243d65f88db89c1dc8e6">send</a> (SocketAddress address, SocketPort port, const void *buffer, std::size_t size)</td></tr>
|
95
|
+
|
96
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sends something to the given port of the computer identified by the address. <a href="#994ac62dc770243d65f88db89c1dc8e6"></a><br></td></tr>
|
48
97
|
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
|
49
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top">boost::function< void(SocketAddress, <br>
|
50
|
-
SocketPort, const void <br>
|
51
|
-
*, std::size_t) </td><td class="memItemRight" valign="bottom"><a class="el" href="
|
98
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">boost::function< void(SocketAddress, <br class="typebreak">
|
99
|
+
SocketPort, const void <br class="typebreak">
|
100
|
+
*, std::size_t) </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_message_socket.html#946bf3cb838b105842ca86938c3a86ae">onReceive</a> )</td></tr>
|
52
101
|
|
102
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">If assigned, will be called by update for every packet received. <a href="#946bf3cb838b105842ca86938c3a86ae"></a><br></td></tr>
|
53
103
|
</table>
|
54
104
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
55
105
|
Wraps an UDP socket.
|
56
106
|
<p>
|
57
|
-
Message sockets can send data to and receive data from arbitrary addresses. Also, message sockets send messages (packets) which are limited in size and can arrive in any order, or not at all.
|
107
|
+
Message sockets can send data to and receive data from arbitrary addresses. Also, message sockets send messages (packets) which are limited in size and can arrive in any order, or not at all.
|
108
|
+
<p>Definition at line <a class="el" href="_sockets_8hpp-source.html#l00037">37</a> of file <a class="el" href="_sockets_8hpp-source.html">Sockets.hpp</a>.</p>
|
109
|
+
<hr><h2>Constructor & Destructor Documentation</h2>
|
58
110
|
<a class="anchor" name="7894acdea2e7dc85c671ca0f6732ccaf"></a><!-- doxytag: member="Gosu::MessageSocket::MessageSocket" ref="7894acdea2e7dc85c671ca0f6732ccaf" args="(SocketPort port)" -->
|
59
111
|
<div class="memitem">
|
60
112
|
<div class="memproto">
|
@@ -65,7 +117,7 @@ Message sockets can send data to and receive data from arbitrary addresses. Also
|
|
65
117
|
<td class="paramtype">SocketPort </td>
|
66
118
|
<td class="paramname"> <em>port</em> </td>
|
67
119
|
<td> ) </td>
|
68
|
-
<td
|
120
|
+
<td><code> [explicit]</code></td>
|
69
121
|
</tr>
|
70
122
|
</table>
|
71
123
|
</div>
|
@@ -77,45 +129,43 @@ Opens a message socket for listening at the specified port.
|
|
77
129
|
Gosu::anyPort may be passed to have the message socket use a random free port.
|
78
130
|
</div>
|
79
131
|
</div><p>
|
80
|
-
<
|
81
|
-
<a class="anchor" name="eadfbf7bbdcc2544a5aaa0d16efa2851"></a><!-- doxytag: member="Gosu::MessageSocket::address" ref="eadfbf7bbdcc2544a5aaa0d16efa2851" args="() const " -->
|
132
|
+
<a class="anchor" name="19af8fa567af04eb7fe41b704521a595"></a><!-- doxytag: member="Gosu::MessageSocket::~MessageSocket" ref="19af8fa567af04eb7fe41b704521a595" args="()" -->
|
82
133
|
<div class="memitem">
|
83
134
|
<div class="memproto">
|
84
135
|
<table class="memname">
|
85
136
|
<tr>
|
86
|
-
<td class="memname">
|
137
|
+
<td class="memname">Gosu::MessageSocket::~MessageSocket </td>
|
87
138
|
<td>(</td>
|
88
139
|
<td class="paramname"> </td>
|
89
140
|
<td> ) </td>
|
90
|
-
<td
|
141
|
+
<td></td>
|
91
142
|
</tr>
|
92
143
|
</table>
|
93
144
|
</div>
|
94
145
|
<div class="memdoc">
|
95
146
|
|
96
|
-
<p>
|
97
|
-
Returns the local address of the socket.
|
98
147
|
<p>
|
99
148
|
|
100
149
|
</div>
|
101
150
|
</div><p>
|
102
|
-
<
|
151
|
+
<hr><h2>Member Function Documentation</h2>
|
152
|
+
<a class="anchor" name="eadfbf7bbdcc2544a5aaa0d16efa2851"></a><!-- doxytag: member="Gosu::MessageSocket::address" ref="eadfbf7bbdcc2544a5aaa0d16efa2851" args="() const " -->
|
103
153
|
<div class="memitem">
|
104
154
|
<div class="memproto">
|
105
155
|
<table class="memname">
|
106
156
|
<tr>
|
107
|
-
<td class="memname">
|
157
|
+
<td class="memname">SocketAddress Gosu::MessageSocket::address </td>
|
108
158
|
<td>(</td>
|
109
159
|
<td class="paramname"> </td>
|
110
160
|
<td> ) </td>
|
111
|
-
<td
|
161
|
+
<td> const</td>
|
112
162
|
</tr>
|
113
163
|
</table>
|
114
164
|
</div>
|
115
165
|
<div class="memdoc">
|
116
166
|
|
117
167
|
<p>
|
118
|
-
Returns the local
|
168
|
+
Returns the local address of the socket.
|
119
169
|
<p>
|
120
170
|
|
121
171
|
</div>
|
@@ -129,7 +179,7 @@ Returns the local port of the socket.
|
|
129
179
|
<td>(</td>
|
130
180
|
<td class="paramname"> </td>
|
131
181
|
<td> ) </td>
|
132
|
-
<td
|
182
|
+
<td> const</td>
|
133
183
|
</tr>
|
134
184
|
</table>
|
135
185
|
</div>
|
@@ -141,23 +191,23 @@ Returns the maximum size, in bytes, of a packet that can be sent from this socke
|
|
141
191
|
|
142
192
|
</div>
|
143
193
|
</div><p>
|
144
|
-
<a class="anchor" name="
|
194
|
+
<a class="anchor" name="38999d7a0fee723adcb21bf3a036be91"></a><!-- doxytag: member="Gosu::MessageSocket::port" ref="38999d7a0fee723adcb21bf3a036be91" args="() const " -->
|
145
195
|
<div class="memitem">
|
146
196
|
<div class="memproto">
|
147
197
|
<table class="memname">
|
148
198
|
<tr>
|
149
|
-
<td class="memname">
|
199
|
+
<td class="memname">SocketPort Gosu::MessageSocket::port </td>
|
150
200
|
<td>(</td>
|
151
201
|
<td class="paramname"> </td>
|
152
202
|
<td> ) </td>
|
153
|
-
<td
|
203
|
+
<td> const</td>
|
154
204
|
</tr>
|
155
205
|
</table>
|
156
206
|
</div>
|
157
207
|
<div class="memdoc">
|
158
208
|
|
159
209
|
<p>
|
160
|
-
|
210
|
+
Returns the local port of the socket.
|
161
211
|
<p>
|
162
212
|
|
163
213
|
</div>
|
@@ -193,7 +243,7 @@ Collects all the packets that were sent to this socket and calls onReceive for e
|
|
193
243
|
<tr>
|
194
244
|
<td></td>
|
195
245
|
<td>)</td>
|
196
|
-
<td></td><td></td><td
|
246
|
+
<td></td><td></td><td></td>
|
197
247
|
</tr>
|
198
248
|
</table>
|
199
249
|
</div>
|
@@ -203,6 +253,27 @@ Collects all the packets that were sent to this socket and calls onReceive for e
|
|
203
253
|
Sends something to the given port of the computer identified by the address.
|
204
254
|
<p>
|
205
255
|
|
256
|
+
</div>
|
257
|
+
</div><p>
|
258
|
+
<a class="anchor" name="3e642630d8b17d9336e3eb7112fa14dd"></a><!-- doxytag: member="Gosu::MessageSocket::update" ref="3e642630d8b17d9336e3eb7112fa14dd" args="()" -->
|
259
|
+
<div class="memitem">
|
260
|
+
<div class="memproto">
|
261
|
+
<table class="memname">
|
262
|
+
<tr>
|
263
|
+
<td class="memname">void Gosu::MessageSocket::update </td>
|
264
|
+
<td>(</td>
|
265
|
+
<td class="paramname"> </td>
|
266
|
+
<td> ) </td>
|
267
|
+
<td></td>
|
268
|
+
</tr>
|
269
|
+
</table>
|
270
|
+
</div>
|
271
|
+
<div class="memdoc">
|
272
|
+
|
273
|
+
<p>
|
274
|
+
Collects all the packets that were sent to this socket and calls onReceive for each of them.
|
275
|
+
<p>
|
276
|
+
|
206
277
|
</div>
|
207
278
|
</div><p>
|
208
279
|
<hr><h2>Member Data Documentation</h2>
|
@@ -211,7 +282,7 @@ Sends something to the given port of the computer identified by the address.
|
|
211
282
|
<div class="memproto">
|
212
283
|
<table class="memname">
|
213
284
|
<tr>
|
214
|
-
<td class="memname">boost::function<void (SocketAddress, SocketPort, const void*, std::size_t) <a class="el" href="
|
285
|
+
<td class="memname">boost::function<void (SocketAddress, SocketPort, const void*, std::size_t) <a class="el" href="class_gosu_1_1_message_socket.html#946bf3cb838b105842ca86938c3a86ae">Gosu::MessageSocket::onReceive</a>) </td>
|
215
286
|
</tr>
|
216
287
|
</table>
|
217
288
|
</div>
|
@@ -221,13 +292,14 @@ Sends something to the given port of the computer identified by the address.
|
|
221
292
|
If assigned, will be called by update for every packet received.
|
222
293
|
<p>
|
223
294
|
|
295
|
+
<p>Definition at line <a class="el" href="_sockets_8hpp-source.html#l00070">70</a> of file <a class="el" href="_sockets_8hpp-source.html">Sockets.hpp</a>.</p>
|
296
|
+
|
224
297
|
</div>
|
225
298
|
</div><p>
|
226
299
|
<hr>The documentation for this class was generated from the following file:<ul>
|
227
|
-
<li><a class="el" href="
|
300
|
+
<li><a class="el" href="_sockets_8hpp-source.html">Sockets.hpp</a></ul>
|
228
301
|
</div>
|
229
|
-
<
|
230
|
-
|
231
|
-
|
232
|
-
</body>
|
302
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
303
|
+
</div>
|
304
|
+
</body>
|
233
305
|
</html>
|