Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ba1ae62b
Commit
ba1ae62b
authored
Nov 07, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Add an implementation of IPOP3Transport::CommandTOP.
parent
46c5c1a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
2 deletions
+51
-2
pop3transport.c
dlls/inetcomm/pop3transport.c
+51
-2
No files found.
dlls/inetcomm/pop3transport.c
View file @
ba1ae62b
...
...
@@ -494,6 +494,40 @@ static void POP3Transport_CallbackRecvRETRResp(IInternetTransport *iface, char *
InternetTransport_ReadLine
(
&
This
->
InetTransport
,
POP3Transport_CallbackProcessRETRResp
);
}
static
void
POP3Transport_CallbackProcessTOPResp
(
IInternetTransport
*
iface
,
char
*
pBuffer
,
int
cbBuffer
)
{
POP3Transport
*
This
=
(
POP3Transport
*
)
iface
;
POP3RESPONSE
response
;
HRESULT
hr
;
TRACE
(
"
\n
"
);
hr
=
POP3Transport_ParseResponse
(
This
,
pBuffer
,
&
response
);
if
(
FAILED
(
hr
))
{
/* FIXME: handle error */
return
;
}
IPOP3Callback_OnResponse
((
IPOP3Callback
*
)
This
->
InetTransport
.
pCallback
,
&
response
);
if
(
!
response
.
fDone
)
{
InternetTransport_ReadLine
(
&
This
->
InetTransport
,
POP3Transport_CallbackProcessTOPResp
);
return
;
}
IPOP3Callback_OnResponse
((
IPOP3Callback
*
)
This
->
InetTransport
.
pCallback
,
&
response
);
}
static
void
POP3Transport_CallbackRecvTOPResp
(
IInternetTransport
*
iface
,
char
*
pBuffer
,
int
cbBuffer
)
{
POP3Transport
*
This
=
(
POP3Transport
*
)
iface
;
TRACE
(
"
\n
"
);
InternetTransport_ReadLine
(
&
This
->
InetTransport
,
POP3Transport_CallbackProcessTOPResp
);
}
static
void
POP3Transport_CallbackProcessLISTResp
(
IInternetTransport
*
iface
,
char
*
pBuffer
,
int
cbBuffer
)
{
POP3Transport
*
This
=
(
POP3Transport
*
)
iface
;
...
...
@@ -902,8 +936,23 @@ static HRESULT WINAPI POP3Transport_CommandLIST(
static
HRESULT
WINAPI
POP3Transport_CommandTOP
(
IPOP3Transport
*
iface
,
POP3CMDTYPE
cmdtype
,
DWORD
dwPopId
,
DWORD
cPreviewLines
)
{
FIXME
(
"(%u, %u, %u)
\n
"
,
cmdtype
,
dwPopId
,
cPreviewLines
);
return
E_NOTIMPL
;
static
char
top
[]
=
"TOP %u %u
\r\n
"
;
POP3Transport
*
This
=
(
POP3Transport
*
)
iface
;
char
*
command
;
int
len
;
TRACE
(
"(%u, %u, %u)
\n
"
,
cmdtype
,
dwPopId
,
cPreviewLines
);
len
=
sizeof
(
top
)
+
20
+
2
;
/* 2 * "4294967296" + "\r\n" */
if
(
!
(
command
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
)))
return
S_FALSE
;
sprintf
(
command
,
top
,
dwPopId
,
cPreviewLines
);
This
->
preview_lines
=
cPreviewLines
;
init_parser
(
This
,
POP3_TOP
,
cmdtype
);
InternetTransport_DoCommand
(
&
This
->
InetTransport
,
command
,
POP3Transport_CallbackRecvTOPResp
);
HeapFree
(
GetProcessHeap
(),
0
,
command
);
return
S_OK
;
}
static
HRESULT
WINAPI
POP3Transport_CommandQUIT
(
IPOP3Transport
*
iface
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment