pre-pending이 무슨 뜻인가요?

skydancer의 이미지

rfc-1939(POP3) 중에 나오는 내용인데요. 사전 보니까 pre-pending은 없고 pending만 있는데

Quote:

pending a.
1 미결정의, 현안의; 【법】 계류중의
~ litigation 계류중인 소송
2 절박한, 임박한
prep.
1 ···동안에, ···중(during)
~ the negotiations 교섭을 하는 동안에
2 ···까지
~ his return 그가 돌아올 때까지 [/code]

라고 나오는데 이거 가지고는 전혀 감을 못 잡겠습니다. 아래는 단어가 나오는 본문입니다.
Quote:

When all lines of the response have been sent, a
final line is sent, consisting of a termination octet (decimal code
046, ".") and a CRLF pair. If any line of the multi-line response
begins with the termination octet, the line is "byte-stuffed" by
pre-pending the termination octet to that line of the response.
Hence a multi-line response is terminated with the five octets
"CRLF.CRLF".
codebank의 이미지

역시 영어는 어렵네요... :oops:
대충 앞뒤 문맥을 잡아보면...

마지막 라인일때 '.CRLF'가 한쌍으로 나오는데 여러 라인이 올경우 '.CRLF'는 마지막이 아니므로
pre-pending에 의해서 'CRLF.CRLF'로 채워진다.

정도로 해석되겠죠?(맞나? :oops: )
결국은 선행처리기정도로 해석하면 되지 않을까요.

(음... 역시 영어를 못하면 가만히 있어야하는데... 쩝... :oops: )

------------------------------
좋은 하루 되세요.

skydancer의 이미지

음... 그렇군요. 제가 너무 단어 자체의 뜻에만 집착했나보군요.
갑갑했던게 싹 풀리네요. 정말 감사합니다.

웃어요^,.^;

skydancer의 이미지

아.. 그런데 지금 바로 뒷부분을 보니

Quote:
When examining a multi-line response, the client checks
to see if the line begins with the termination octet. If so and if
octets other than CRLF follow, the first octet of the line (the
termination octet) is stripped away. If so and if CRLF immediately
follows the termination character, then the response from the POP
server is ended and the line containing ".CRLF" is not considered
part of the multi-line response.

라고 나와있는데 이러면 클라이언트 측에서는 "." 다음에 CRLF가 오면 응답이 끝난걸로 보고 .CRLF를 버리고 CRLF가 아니고 딴게 오면 "."을 버린다는 걸로 봐서 서버측에서 볼때 새 줄의 맨 처음에 "."이 오면 "."을 맨 앞에 첨가 시켜서 보낸다는 뜻은 아닐까요?

웃어요^,.^;

pynoos의 이미지

POP3에대한것이지만, SMTP도 동일합니다.

본문 내용에 . 으로 시작하는 것이 오면, 항상 . 을 하나 더 붙여서 보냅니다. 따라서, 본문을 수신하는 쪽에서는 .. 으로 시작하면, 하나를 제거하여 이해해야합니다.

skydancer의 이미지

음.. 그렇군요. smtp는 아직 안 읽었는데 나중에 읽을때 참고하겠습니다.
답변 감사합니다.

웃어요^,.^;

parrell의 이미지

스티븐스 tcpip illustrated 에 봐도 prepend 라는 단어가 유난히 많이 나오드라구여.. ^^

No talking, all action.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.